<?php

use App\Services\AetherUpload\Lib\ConfigMapper;

Route::group(['middleware' => 'web'], function () {

    Route::post(ConfigMapper::get('route_preprocess'), [ConfigMapper::get('controller'), 'preprocess'])->middleware(ConfigMapper::get('middleware_preprocess'));
    Route::options(ConfigMapper::get('route_preprocess'), [ConfigMapper::get('controller'), 'options']);
    Route::post(ConfigMapper::get('route_uploading'), [ConfigMapper::get('controller'), 'saveChunk'])->middleware(ConfigMapper::get('middleware_uploading'));
    Route::options(ConfigMapper::get('route_uploading'), [ConfigMapper::get('controller'), 'options']);

    //Route::get(ConfigMapper::get('route_display') . '/{uri}', ConfigMapper::get('controller').'@display')->middleware(ConfigMapper::get('middleware_display'));
    //Route::get(ConfigMapper::get('route_download') . '/{uri}/{newName}', ConfigMapper::get('controller').'@download')->middleware(ConfigMapper::get('middleware_download'));

});
